/*
 * Copyright 2000-2020 ALPHA LAB.Inc All Rights Reserved.
 */
package com.alphalab.moonlight.demo.impl.trans;

import org.springframework.beans.BeanUtils; 
import com.alphalab.framework.domain.AbstractValueObjectTransfer; 
import com.alphalab.moonlight.demo.dao.model.PassengerTravel; 
import com.alphalab.moonlight.demo.service.model.PassengerTravelVO;

/**
 * PassengerTravelTransfer.
 * @author allen 
 * @version 1.0.0 2018年3月4日
 */
public class PassengerTravelTransfer extends AbstractValueObjectTransfer<PassengerTravelVO, PassengerTravel> {

	/* (non-Javadoc)
	 * @see com.alphalab.framework.domain.AbstractValueObjectTransfer#toPO(
	 * com.alphalab.framework.domain.AbstractValueObject)
	 */
	@Override
	public PassengerTravel toPO(final PassengerTravelVO paramVO) {
		if (paramVO == null) {
			return null;
		}
		final PassengerTravel passengerTravel = new PassengerTravel();
		BeanUtils.copyProperties(paramVO, passengerTravel);
		return passengerTravel;
	}

	/* (non-Javadoc)
	 * @see com.alphalab.framework.domain.AbstractValueObjectTransfer#toVO(
	 * com.alphalab.framework.domain.BaseEntity)
	 */
	@Override
	public PassengerTravelVO toVO(final PassengerTravel paramPO) {
		if (paramPO == null) {
			return null;
		}
		final PassengerTravelVO passengerTravelVO = new PassengerTravelVO();
		BeanUtils.copyProperties(paramPO, passengerTravelVO);
		return passengerTravelVO;
	}

}
